Add more flexible _remote_change() API , expose via 'ostree remote'
authorColin Walters <walters@verbum.org>
Mon, 15 Dec 2014 21:21:15 +0000 (16:21 -0500)
committerColin Walters <walters@verbum.org>
Tue, 16 Dec 2014 02:28:09 +0000 (21:28 -0500)
commitf6a6e68412c9f1be2b5de1ded79b92aa340ab22c
treeefa0d57f5a1ecbca09b72e3c4aa7c08f9cebebde
parent8067e977a7280f3033406b208569464ffb630e92
Add more flexible _remote_change() API , expose via 'ostree remote'

For Anaconda, I needed OSTREE_REPO_REMOTE_CHANGE_ADD_IF_NOT_EXISTS,
with the GFile *sysroot argument to avoid ugly hacks.  We want to
write the content provided via "ostreesetup" as a remote to the target
chroot only in the case where it isn't provided as part of the tree
content itself.

This is also potentially useful in idempotent systems management tools
like Ansible.

https://bugzilla.gnome.org/show_bug.cgi?id=741577
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-remote.c
tests/test-remote-add.sh